#include "qwidgetfactory.h"

#include "../../lib/shared/quixml.h"
#include "../../include/abstractcore.h"

#include <QMessageBox>

AbstractCore *QWidgetFactory::m_core;

QWidget *QWidgetFactory::createWidget(const QString &className, const QString &ui)
{
    QWidget *wid=NULL;

    wid=m_core->createWidget(className);
    if(wid!=NULL)
    {
        wid->setProperty("designer_widget",true);
    }
    return wid;
}
